package cn.com.test_source_code;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyApp {
	public static void main(String[] args) {
		ApplicationContext ac=new ClassPathXmlApplicationContext("applicationContext.xml");
		Person person=(Person) ac.getBean("person");
		System.out.println("id------>"+person.getId()+"=======name-------->"+person.getName());

	}
}
